package com.xxh.myapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Course)表实体类
 *
 * @author makejava
 * @since 2020-05-01 16:36:51
 */
@SuppressWarnings("serial")
public class Course extends Model<Course> implements Cloneable{
    @TableId(type = IdType.AUTO)
    private Integer cno;
    
    private String cname;
    
    private Integer credit;
    
    private Integer majorId;
    
    private Integer tno;
    
    private Integer stuNumMax;
    
    private Integer stuNumCur;


    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public Integer getMajorId() {
        return majorId;
    }

    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }

    public Integer getTno() {
        return tno;
    }

    public void setTno(Integer tno) {
        this.tno = tno;
    }

    public Integer getStuNumMax() {
        return stuNumMax;
    }

    public void setStuNumMax(Integer stuNumMax) {
        this.stuNumMax = stuNumMax;
    }

    public Integer getStuNumCur() {
        return stuNumCur;
    }

    public void setStuNumCur(Integer stuNumCur) {
        this.stuNumCur = stuNumCur;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.cno;
    }

    //重写clonne接口
    public Object clone(){
        Object obj=null;
        try {
            obj=super.clone();
            return obj;
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }
}